-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeclaredType in TypeChecker #2008
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: chriseth <[email protected]>
Co-authored-by: chriseth <[email protected]>
This looks very good now, thanks! Now my main remaining question is: Can we turn the two enums into a single one? |
Do you mean DeclaredType and DeclaredTypeKind? Maybe adding the type and an Option<HashMap<...>> to DeclaredType? I find the Option more cumbersome than having another Enum, but whatever you prefer :) |
As part of the Struct integration (mainly typing), we need to improve the way “declared types” are handled so that we can type struct fields without passing new data structures to type checking.
This PR introduces the necessary modification to then add Struct typing on top of it, preventing #1910 from being huge.